//建行生活
$("#editjianhangshenghuoType").change(function (){
    var reslist=$("#editjianhangshenghuoType").select2("data");
    $("#editjianhangshenghuoTypes").val(payTypes(reslist));
});


$("#jianhangshenghuoType").change(function(){
    var reslist=$("#jianhangshenghuoType").select2("data");
    $("#jianhangshenghuoTypes").val(payTypes(reslist));
});

function editjianhangshenghuo(i) {

    $("#editjianhangshenghuoUrl").attr("name", "payCompanyInfos[" + i + "].jianHangShengHuoVO.url");
    $("#editjianhangshenghuoKey").attr("name", "payCompanyInfos[" + i + "].jianHangShengHuoVO.key");
    $("#editjianhangshenghuoCCBIBSVersion").attr("name", "payCompanyInfos[" + i + "].jianHangShengHuoVO.CCBIBSVersion");
    $("#editjianhangshenghuoPtStyle").attr("name", "payCompanyInfos[" + i + "].jianHangShengHuoVO.ptStyle");
    $("#editjianhangshenghuoPtLanguage").attr("name", "payCompanyInfos[" + i + "].jianHangShengHuoVO.ptLanguage");
    $("#editjianhangshenghuoCampusId").attr("name", "payCompanyInfos[" + i + "].jianHangShengHuoVO.campusId");
    $("#editjianhangshenghuoCorpId").attr("name", "payCompanyInfos[" + i + "].jianHangShengHuoVO.corpId");

    $("#editjianhangshenghuoTypes").attr("name", "payCompanyInfos[" + i + "].payType");

    $("#editjianhangshenghuoType").attr("data-placeholder", "请从列表选择一项");
    $("#editjianhangshenghuoType").attr("required", "");

    $("#editjianhangshenghuoUrl").attr("required", "");
    $("#editjianhangshenghuoKey").attr("required", "");
    $("#editjianhangshenghuoCCBIBSVersion").attr("required", "");
    $("#editjianhangshenghuoPtStyle").attr("required", "");
    $("#editjianhangshenghuoPtLanguage").attr("required", "");
    $("#editjianhangshenghuoCampusId").attr("required", "");
    $("#editjianhangshenghuoCorpId").attr("required", "");
}


function jianhangshenghuo(i) {
    $("#jianhangshenghuoUrl").attr("name", "payCompanyInfos[" + i + "].jianHangShengHuoVO.url");
    $("#jianhangshenghuoKey").attr("name", "payCompanyInfos[" + i + "].jianHangShengHuoVO.key");
    $("#jianhangshenghuoCCBIBSVersion").attr("name", "payCompanyInfos[" + i + "].jianHangShengHuoVO.CCBIBSVersion");
    $("#jianhangshenghuoPtStyle").attr("name", "payCompanyInfos[" + i + "].jianHangShengHuoVO.ptStyle");
    $("#jianhangshenghuoPtLanguage").attr("name", "payCompanyInfos[" + i + "].jianHangShengHuoVO.ptLanguage");
    $("#jianhangshenghuoCampusId").attr("name", "payCompanyInfos[" + i + "].jianHangShengHuoVO.campusId");
    $("#jianhangshenghuoCorpId").attr("name", "payCompanyInfos[" + i + "].jianHangShengHuoVO.corpId");

    $("#jianhangshenghuoTypes").attr("name", "payCompanyInfos[" + i + "].payType");


    $("#jianhangshenghuoPayType").attr("data-placeholder", "请从列表选择一项");
    $("#jianhangshenghuoPayType").attr("required", "");


}